#--coding:utf-8--
#徐璇

# ---------------------------------------
# def formula(start):
# 	a = start*500
# 	b = start/1000
# 	c = start/100
# 	return a, b, c

# start = 10000
# x, y, z = formula(start)
# print "x = %d, y = %d, z = %d"  %(x, y, z)

# start = start/10
# print "x = %d, y = %d, z = %d"  %formula(start)

# ----------------------------------------------

# def break_words(stuff):
# 	words = stuff.split(' ')
# 	return words  #words is a list

# def sort_words(words):
# 	return sorted(words)

# def print_first_word(words):
# 	print words.pop(0)

# def print_last_word(words):
# 	print words.pop(-1)

# def sort_sentence(sentence):
# 	words = break_words(sentence)
# 	#return sorted(words)  
# 	return sort_words(words)

# def print_first_and_last(sentence):
# 	words = break_words(sentence)
# 	print_first_word(words)
# 	print_last_word(words)

# def print_first_and_last_sorted(sentence):
# 	words = sort_sentence(sentence)
# 	print_first_word(words)
# 	print_last_word(words)

# ----------------------------------------------


# cities = {'CA': 'San Francisco', 'MI': 'Detroit',\
# 'FL': 'Jacksonville'}

# def find_city(cities,city):
# 	if city in cities:
# 		return cities[city]
# 	else:
# 		return "not found"

# while True:
# 	print "State? (enter to quit)",
# 	city = raw_input(">")

# 	if not city:
# 		break

# 	city_found = find_city(cities,city)
# 	print city_found
# ----------------------------------------------

